package com.marisfrolg.entity;

import java.sql.Date;

import com.lidroid.xutils.db.annotation.Column;
import com.lidroid.xutils.db.annotation.Table;
import com.marisfrolg.entity.json.JsonEnquiryOrderItem;

@Table(name = "enquiryorderitem")
public class EnquiryOrderItem extends EntityBase {
	public static final String[] STATUSDESC={"未开始","进行中","已完成"};
	
	@Column(column = "seq")
	private int seq;
	@Column(column = "sbinno")
	public String sbinno;
	@Column(column = "sbinnocheck")
	private String sbinnocheck;//输入值
	@Column(column = "updatetime")
	private Date updatetime;
	@Column(column = "productno")
	public String productno;
	@Column(column = "quantity")
	public int quantity;
	@Column(column = "allquantity")
	public int allquantity;
	@Column(column = "status")
	public int status;
	@Column(column = "tanum")
	public int tanum;
	@Column(column = "procty")
	public String procty;
	@Column(column = "tostat")
	public String tostat;
	@Column(column = "matid")
	public String matid;
	@Column(column = "cat")
	public String cat;
	@Column(column = "meins")
	public String meins;
	@Column(column = "dstgrp")
	public String dstgrp;
	@Column(column = "lgnum")
	private String lgnum;
	@Column(column = "whoseq")
	private int whoseq;
	@Column(column="descrip")
	private String descrip;
	@Column(column="maktx")
	private String maktx;
	public void setJsonObj(JsonEnquiryOrderItem jeoi){
		setTanum(jeoi.TANUM);
		setLgnum(jeoi.LGNUM);
		setProcty(jeoi.PROCTY);
		setTostat(jeoi.TOSTAT);
		setMatid(jeoi.MATID);
		setProductno(jeoi.MATNR);
		setCat(jeoi.CAT);
		setMeins(jeoi.MEINS);
		setDstgrp(jeoi.DSTGRP);
		setSbinno(jeoi.VLPLA);
		setAllquantity(jeoi.VSOLM);
		setWhoseq(whoseq);
		setDescrip(jeoi.getDESCRIP());
		setMaktx(jeoi.MAKTX);
	}
	
	public int getTanum() {
		return tanum;
	}
	public String getProcty() {
		return procty;
	}
	public String getTostat() {
		return tostat;
	}
	public String getMatid() {
		return matid;
	}
	public String getCat() {
		return cat;
	}
	public String getMeins() {
		return meins;
	}
	public String getDstgrp() {
		return dstgrp;
	}
	public void setTanum(int tanum) {
		this.tanum = tanum;
	}
	public void setProcty(String procty) {
		this.procty = procty;
	}
	public void setTostat(String tostat) {
		this.tostat = tostat;
	}
	public void setMatid(String matid) {
		this.matid = matid;
	}
	public void setCat(String cat) {
		this.cat = cat;
	}
	public void setMeins(String meins) {
		this.meins = meins;
	}
	public void setDstgrp(String dstgrp) {
		this.dstgrp = dstgrp;
	}
	/**
	 * @return the updatetime
	 */
	public Date getUpdatetime() {
		return updatetime;
	}
	public String getSbinno() {
		return sbinno;
	}
	public void setSbinno(String sbinno) {
		this.sbinno = sbinno;
	}
	public String getProductno() {
		return productno;
	}
	public void setProductno(String productno) {
		this.productno = productno;
	}
	public int getQuantity() {
		return quantity;
	}
	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	/**
	 * @param updatetime the updatetime to set
	 */
	public void setUpdatetime(Date updatetime) {
		this.updatetime = updatetime;
	}
	/**
	 * @return the allquantity
	 */
	public int getAllquantity() {
		return allquantity;
	}
	/**
	 * @param allquantity the allquantity to set
	 */
	public void setAllquantity(int allquantity) {
		this.allquantity = allquantity;
	}
	/**
	 * @return the seq
	 */
	public int getSeq() {
		return seq;
	}
	/**
	 * @param seq the seq to set
	 */
	public void setSeq(int seq) {
		this.seq = seq;
	}
	/**
	 * @return the sbinnocheck
	 */
	public String getSbinnocheck() {
		return sbinnocheck;
	}
	/**
	 * @param sbinnocheck the sbinnocheck to set
	 */
	public void setSbinnocheck(String sbinnocheck) {
		this.sbinnocheck = sbinnocheck;
	}
	/**
	 * @return the lgnum
	 */
	public String getLgnum() {
		return lgnum;
	}
	/**
	 * @param lgnum the lgnum to set
	 */
	public void setLgnum(String lgnum) {
		this.lgnum = lgnum;
	}

	/**
	 * @return the whoseq
	 */
	public int getWhoseq() {
		return whoseq;
	}

	/**
	 * @param whoseq the whoseq to set
	 */
	public void setWhoseq(int whoseq) {
		this.whoseq = whoseq;
	}

	/**
	 * @return the descrip
	 */
	public String getDescrip() {
		return descrip;
	}

	/**
	 * @param descrip the descrip to set
	 */
	public void setDescrip(String descrip) {
		this.descrip = descrip;
	}

	/**
	 * @return the maktx
	 */
	public String getMaktx() {
		return maktx;
	}

	/**
	 * @param maktx the maktx to set
	 */
	public void setMaktx(String maktx) {
		this.maktx = maktx;
	}
	
}
